import { createRouter, createWebHistory } from "vue-router";

const routes = [
    {
        path: "/",
        name: "shopping",
        component: () => import("../components/shopping.vue"),
        children: [
            {
                path: "rxb",
                component: () => import("../components/second/rxb.vue"),
            },
            {
                path: "tstc",
                component: () => import("../components/second/tstc.vue"),
            },
            {
                path: "tszp",
                component: () => import("../components/second/tszp.vue"),
            },
            {
                path: "jxrc",
                component: () => import("../components/second/jxrc.vue"),
            },
            {
                path: "sklc",
                component: () => import("../components/second/sklc.vue"),
            },
            {
                path: "bcp",
                component: () => import("../components/second/bcp.vue"),
            },
            {
                path: "fl",
                component: () => import("../components/second/fl.vue"),
            },
            {
                path: "ml",
                component: () => import("../components/second/ml.vue"),
            },
            {
                path: "xc",
                component: () => import("../components/second/xc.vue"),
            },
            {
                path: "lw",
                component: () => import("../components/second/lw.vue"),
            },


        ],
    },
    {
        path: "/pingjia",
        name: "pingjia",
        component: () => import("../components/pingjia.vue")
    },
    {
        path: "/shangjia",
        name: "shangjia",
        component: () => import("../components/shangjia.vue")
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
})
export default router;